home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
drivers
/
211ddu.arj
/
SETVGA.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-03-29
|
4KB
|
127 lines
@echo off
if %1. == ? goto HELP
if %1. == . goto DEFAULT
if %2. == . goto NONPRLD
goto PRLD
:NONPRLD
if %2. == . goto HELP
if exist %1\os2\install\rspdspi.exe goto DSPIPRES
if %2. == a:. goto PANEL
if %2. == A:. goto PANEL
if %2. == b:. goto PANEL
if %2. == B:. goto PANEL
%1\os2\unpack %2\disk_8\instaid %1 /n:rspdspi.exe
goto NONPRLD
:PANEL
rem *******************************************************
echo Insert OS/2 Installation Diskette 8 into Drive A: and
rem *******************************************************
pause
%1\os2\unpack %2\instaid %1 /n:rspdspi.exe
goto NONPRLD
:DSPIPRES
%1
set path=%1\;%1\os2;%1\os2\install
set dpath=%1\;%1\os2;%1\os2\install
cls
%2\testver %1
if errorlevel 2 goto MR1
%2\testver %1
if errorlevel 1 goto BORG
goto ERROR
:BORG
copy %2\unpack.exe >nul
copy %2\unpack2.exe >nul
%1\os2\install\rspdspi /pk:VGA /sk:NONE /s:%2 /t:%1
goto NEXT1
:MR1
%1\os2\install\rspdspi /pk:VGA /sk:NONE /s:%2\MR1 /t:%1
:NEXT1
cls
del %1\os2\svgadata.pmi 1>nul 2>nul
goto END
:PRLD
if %2. == /p. goto DOPRLD
if %2. == /P. goto DOPRLD
goto NONPRLD
:DOPRLD
set path=%1\;%1\os2;%1\os2\install
set dpath=%1\;%1\os2;%1\os2\install
%1
%1\os2\install\rspdspi /pk:VGA /sk:NONE /s:%1\os2\install\dspdrvs /t:%1
cls
del %1\os2\svgadata.pmi 1>nul 2>nul
@ECHO ON
%1\os2\unpack.exe %1\os2\install\drivers\bitmap.vga %1
%1\os2\unpack.exe %1\os2\install\drivers\courier.bmp %1 /n:courier.bga
%1\os2\unpack.exe %1\os2\install\drivers\helv.bmp %1 /n:helv.bga
%1\os2\unpack.exe %1\os2\install\drivers\sysmono.bmp %1 /n:sysmono.fon
%1\os2\unpack.exe %1\os2\install\drivers\times.bmp %1 /n:times.bga
%1\os2\unpack.exe %1\os2\install\drivers\courpsf %1
%1\os2\unpack.exe %1\os2\install\drivers\helvpsf %1
%1\os2\unpack.exe %1\os2\install\drivers\timespsf %1
%1\os2\unpack.exe %1\os2\install\drivers\serife.fon %1
%1\os2\unpack.exe %1\os2\install\drivers\sserife.fon %1
%1\os2\unpack.exe %1\os2\install\drivers\coure.fon %1
%1\os2\unpack.exe %1\os2\install\drivers\symbole.fon %1
%1\os2\unpack.exe %1\os2\install\drivers\smalle.fon %1
copy %1\os2\dll\courier.bga %1\os2\dll\courier.fon
del %1\os2\dll\courier.bga
copy %1\os2\dll\helv.bga %1\os2\dll\helv.fon
del %1\os2\dll\helv.bga
copy %1\os2\dll\times.bga %1\os2\dll\times.fon
del %1\os2\dll\times.bga
@ECHO OFF
goto END
:DEFAULT
if exist c:\os2\install\rspdspi.exe goto DEFDSPI
rem *******************************************************
echo Insert OS/2 Installation Diskette 8 into Drive A: and
rem *******************************************************
pause
c:\os2\unpack a:\instaid c: /n:rspdspi.exe
goto DEFAULT
:DEFDSPI
set path=c:\;c:\os2;c:\os2\install
set dpath=c:\;c:\os2;c:\os2\install
c:
a:\testver c:
if errorlevel 2 goto MR1DEF
a:\testver c:
if errorlevel 1 goto BORGDEF
goto ERROR
:BORGDEF
copy a:\unpack.exe >nul
copy a:\unpack2.exe >nul
c:\os2\install\rspdspi /pk:VGA /sk:NONE /s:a:\ /t:c:
goto NEXT2
:MR1DEF
c:\os2\install\rspdspi /pk:VGA /sk:NONE /s:a:\MR1 /t:c:
:NEXT2
cls
del c:\os2\svgadata.pmi 1>nul 2>nul
goto END
:HELP
rem *******************************************************
echo SETVGA HELP
echo Syntax: SETVGA [TARGET] [SOURCE]
echo Where: TARGET is the destination drive.
echo SOURCE is the drive and directory of the diskette sources
echo or /p for preloaded systems.
echo TARGET is required if SOURCE is /p.
echo SOURCE is required if TARGET specified.
echo Default is TARGET: C: and SOURCE: A:
echo Examples: setvga c: a:
echo setvga c: d:\disks
rem *******************************************************
goto END
:ERROR
echo **************************************************************
echo SETVGA will not work for your system because you do not have
echo OS/2 Level XR02010_ or XR02111_.
echo **************************************************************
:END